package net.yyge;


import net.yyge.apksigner.ApkSigner;
import java.io.File;


public class Test {

    public static void main(String[] args) {
        File signApkFile = new File("sign.apk");
        File apk =new File("活动启动器-x.apk");
        signApkWithJks(apk, signApkFile);
    }

    public static void signApkWithJks(File inFile,File afterFile){
        ApkSigner apkSigner = new ApkSigner(inFile, afterFile);
        apkSigner.v1SigningEnabled =true;
        apkSigner.v2SigningEnabled =true;
        apkSigner.v3SigningEnabled =true;
        //  File jksFile = apkSigner.getDefaultJksFile(); //内置的一个签名 可以换成自己的
        boolean test = apkSigner.signRelease(apkSigner.getDefaultJksFile(), "123456789", "test", "123456789");

    }
}
